package com.jymj.dao;

import com.jymj.entity.*;
import com.jymj.entity.dto.RenovatedDto;
import com.jymj.entity.dto.RenovatedRejectedDto;
import com.jymj.entity.model.PointAndTypeEntity;
import com.jymj.entity.vo.StatisticalEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ${lc} on 2021/6/16.
 */
@Mapper
public interface RenovatedDao {
    List<StatisticalEntity> getStatistical(@Param("date") String date,
                                           @Param("sysUser") SysUserEntity sysUserEntity);

    void saveFile(RenovatedFile renovatedFile);

    int updateRenovated(RenovatedDto renovatedDto);

    void saveRenovated(RenovatedDto renovatedDto);

    void updateRenovatedFile(RenovatedDto renovatedDto);

    void deletefileById(Long[] ids);

    List<RenovatedFile> getFiles(@Param("ids") Long[] ids,@Param("msid") Long msid);

    void deleteRenovated(RenovatedDto renovatedDto);

    List<RenovatedDto> getRenovated(@Param("objectId") Long objectId, @Param("userId") Long userId,
                                    @Param("id") Long id, @Param("qutype") Integer qutype);

    void updatefj(Long ylId);

    List<YlEntity> getylsList(@Param("code") String code, @Param("xzqmc") String xzqmc);

    List<Renovated> queryList(RenovatedDto renovatedDto);

    RenovatedDto queryById(@Param("id") Long id);

    void saveRejcted(RenovatedRejectedDto renovatedRejectedDto);

    void updateClrInfo(Long id);

    void updateFile(@Param("msid") Long msid, @Param("rejectedId") Long rejectedId);

    List<RenovatedRejectedDto> getRenovatedRejected(Long id);

    KeyValueEntity getSteps(RenovatedDto renovatedDto);

    List<KeyValueEntity> getRenovatedByxy1(PointAndTypeEntity pointAndTypeEntity);

    List<KeyValueEntity> getRenovatedByxy2(PointAndTypeEntity pointAndTypeEntity);

    List<KeyValueEntity> getRenovatedByxy3(PointAndTypeEntity pointAndTypeEntity);
}
